package com.mihoyo.util;

import lombok.Data;


@Data
public class AjaxResult {

    private Boolean success;

    private String message;

    public static AjaxResult me() {
        return new AjaxResult();
    }

    public AjaxResult success() {
        return me().setSuccess(true).setMessage("添加成功");
    }

    public AjaxResult setSuccess(Boolean success) {
        this.success = success;
        return this;
    }

    public AjaxResult setMessage(String message) {
        this.message = message;
        return this;
    }
}
